<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php echo $this->breadCrumbs(); ?>
  </div>
  <?php if (isset($error_warning)) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/order.png" alt="" /> <?php echo $_['heading_title']; ?></h1>
      <div class="buttons">
	  <a onclick="$('#form').submit();" class="button"><?php echo $_['button_save']; ?></a>
	  <a href="<?php echo UA('localisation/order_status'); ?>" class="button"><?php echo $_['button_cancel']; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <tr>
            <td><span class="required">*</span> <?php echo $_['entry_name']; ?></td>
            <td><?php foreach ($languages as $language_id => $language) { ?>
              <input type="text" name="order_status[<?php echo $language_id; ?>][name]" value="<?php echo $vo->getL('order_status', $language_id, 'name'); ?>" />
              <img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /><br />
              <?php 
			  $e = "error_name_" . $language_id;
			  if (isset($$e)) { ?>
              <span class="error"><?php echo $$e; ?></span><br />
              <?php } ?>
              <?php } ?></td>
          </tr>
          <tr>
          <td><?php echo $_['entry_color']; ?></td>
          <td><input class="minicolors" data-theme="bootstrap" type="text" name="color" id="color" value="<?php echo $vo->getL('order_status', $language_id, 'color'); ?>"></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
</div>
<script src="view/javascript/jquery/jquery.minicolors.js"></script>
<script type="text/javascript">
 $(document).ready(function () {
    $(".minicolors").minicolors();
 });
</script>
<?php echo $footer; ?>